package com.wanghua.mall.order.enums;

/**
 * 订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
 *
 * @author wanghua
 * @create 2021-09-08 18:13
 */
public enum OrderStatusEnum {

    PAYING(0, "待付款"),
    PAYED(1, "已付款"),
    DELIVERED(2, "已发货"),
    FINISHED(3, "已完成"),
    CANCELED(4, "已取消"),
    SERVICING(5, "售后中"),
    SERVICED(6, "售后完成");


    private Integer code;
    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
